package s2leinshu.Services;

import s2elinshu.Interfaces.Account2IService;
import s2elinshu.model.Account2VO;

public class Account2Service implements Account2IService {

	@Override
	public void getMonthlyInterestRate(Account2VO ac) {
     double mir;
     mir = ac.getInterestRate()/12;
     ac.setMonthlyInterestRate(mir);
	}

	@Override
	public void withDraw(Account2VO ac, int amount) {
    int balance;
		balance = ac.getBalance()-amount;
		ac.setBalance(balance);
	}

	@Override
	public void deposit(Account2VO ac, int amount) {
		int balance;
		balance = ac.getBalance()+amount;
		ac.setBalance(balance);		
	}


}
